#ifndef MYTEXTEDIT_H
#define MYTEXTEDIT_H

#include <QTextEdit>
#include "widget.h"


class mytextedit : public QTextEdit
{
public:
    mytextedit(QWidget *parent);


protected:
    void wheelEvent(QWheelEvent *event) override;
    void keyPressEvent(QKeyEvent *event) override;
    void keyReleaseEvent(QKeyEvent *event) override;

private:
    bool KeyPress = 0;

};


#endif // MYTEXTEDIT_H
